package org.semanticflash.rdf.values
{
	
	public class RDFPlainLiteral extends RDFLiteral
	{
		
		
		
		public function RDFPlainLiteral( lexicalValue:String )
		{
			super( lexicalValue );
		}
		
		
		
		
		
		public static function instance( lexicalValue:String ):RDFPlainLiteral
		{
			
			var key:String, cachedValue:RDFValue;			
			
			key = "p_" + hash( lexicalValue );
			
			cachedValue = getCachedValue( key );
			if ( cachedValue )
			{
				return cachedValue as RDFPlainLiteral;
			}
				
			return cacheValue( key, new RDFPlainLiteral( lexicalValue ) ) as RDFPlainLiteral;			
		}		
		
		
	}
	
}